Release 10.1A: OpenEdge Development:
ADM Reference
The need for two different syntaxes
Properties store the current state of the object, so reading and writing them is a high-frequency activity. It pays to optimize high-frequency activities, even when the net gain per operation is small. The pseudo-functions provide that slight optimization, and should be used in code that runs inside a SmartObject. Code that runs outside the Smart world—basic 4GL and Open4GL routines—should use the conventional
get/setfunctions.Figure 1–2 shows the
{get}code reformatted and commented. The{set}code is very similar.
Figure 1–2: Commented source code of GET pseudo-function
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |